/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cheetah.youbet.obj;

/**
 *
 * @author edoardo
 */
public class XlsCol {
    
    private int colnumber ;

    public int getColnumber() {
        return colnumber;
    }

    public void setColnumber(int colnumber) {
        this.colnumber = colnumber;
    }

    public int getFirstColumn() {
        return firstColumn;
    }

    public void setFirstColumn(int firstColumn) {
        this.firstColumn = firstColumn;
    }

    public int getLastColumn() {
        return lastColumn==0?firstColumn:lastColumn;
    }

    public void setLastColumn(int lastColumn) {
        this.lastColumn = lastColumn;
    }
    private int firstColumn;
    private int lastColumn;
    private Object content;

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final XlsCol other = (XlsCol) obj;
        if (this.colnumber != other.colnumber) {
            return false;
        }
        if (this.firstColumn != other.firstColumn) {
            return false;
        }
        if (this.lastColumn != other.lastColumn) {
            return false;
        }
        if (this.content != other.content && (this.content == null || !this.content.equals(other.content))) {
            return false;
        }
        return true;
    }

  
    
}
